import { NavParams } from 'ionic-angular';
import { Component } from '@angular/core';
import { UrlService } from '../../../providers/url-service';

@Component({
  selector: 'page-challenge-detial-one-start',
  templateUrl: 'challenge-detial-one-start.html',
})
export class ChallengeDetialOneStartPage {

  ChallengeDetialID;
  constructor(
    public navParams: NavParams,
    public urlService: UrlService
  ) {
    this.ChallengeDetialID = navParams.get("ChallengeDetialID");
  }

  ionViewDidLoad() {
    console.log('挑战详情 ChallengeDetialOneStartPage');
  }
  /**
   * 挑战详情
   */
  GetDekaronInfo() {
    this.urlService.GetDekaronInfo(this.ChallengeDetialID)
      .then(msg => {
        console.log(msg);
      })
      .catch()


  }
  showMoreActionFlag = false;
  /**
   * 打开分享
   */
  showMoreActionModal() {
    this.showMoreActionFlag = true
  }
  /**
   * 取消分享
   */
  hideMoreActionModal() {
    this.showMoreActionFlag = false
  }
}

